/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.click.app.service.impl;

import com.click.app.dao.EmployeeDao;
import com.click.app.model.Employee;
import com.click.app.service.EmployeeManager;
import java.util.List;

/**
 *
 * @author ariel
 */
public class EmployeeManagerImpl extends GenericManagerImpl<Employee, Long> implements EmployeeManager {

    private EmployeeDao employeeDao;

    public EmployeeManagerImpl(EmployeeDao employeeDao) {
        super(employeeDao);
        this.employeeDao = employeeDao;
    }

    public List<Employee> findByType(String type) {
        return employeeDao.findByType(type); 
    }

    public List<Employee> findByRole(String type){
        return employeeDao.findByRole(type);
    }

}
